<extend name="Common/common"/>
<block name="main">
    <div class="right-title tab-toggle">
        <a href="{:U('disease',array('type'=>1))}" class="<eq name='type' value='1'>teach-type</eq>">科室分类</a>
        <a href="{:U('disease',array('type'=>2))}" class="<eq name='type' value='2'>teach-type</eq>">典型人群</a>
    </div>
    <div class="right-content">
        <div class="patinet-content">
            <div class="tab-content" id="tab-content">
                <div class="tab-content-infos">
                    <volist name="list" id="vo">
                    <dl class="tab-list">
                        <dt>
                            {$vo.type_name}
                            <a class="click_more" href="javascript:;"><i class="ui_arrow"></i>更多</a>
                        </dt>
                        <volist name="vo['children']" id="voo">
                        <dd><a href="{:U('diseasedetail',array('id'=>$voo['id']))}">{$voo.disease_name|mbSub=###,0,6}</a></dd>
                        </volist>
                    </dl>
                    </volist>
                </div>
            </div>
        </div>
    </div>
</block>
<block name="css"></block>
<block name="js">
    <script type="text/javascript">
        $(function(){
            //更多
            $("body").on("click", "#tab-content .click_more", function() {

                var self = $(this);
                var H = self.parent().siblings(".attr-list").find(".list").height();

                if (self.parent().parent().hasClass('f-open')) {
                    self.parent().parent().removeClass('f-open').addClass('f-close');

                    self.html('<i class="ui_arrow"></i>更多');
                    return false
                } else {
                    self.parent().parent().removeClass('f-close').addClass('f-open');

                    self.html('<i class="ui_arrow"></i>收起');
                    return false

                }

            })
        });
    </script>
</block>